package cc.uncarbon.module.custom.model.request;

import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import lombok.experimental.SuperBuilder;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;
import cc.uncarbon.framework.core.enums.YesOrNoEnum;
import cc.uncarbon.framework.core.enums.EnabledStatusEnum;


/**
 * 后台管理-新增/编辑项目信息 DTO
 */
@Accessors(chain = true)
@SuperBuilder
@AllArgsConstructor
@NoArgsConstructor
@Data
public class AdminItemInsertOrUpdateDTO implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;


    @Schema(description = "主键ID", hidden = true, title = "仅更新时使用")
    private Long id;

    @Schema(description = "项目名称", requiredMode = Schema.RequiredMode.REQUIRED)
    @Size(max = 255, message = "【项目名称】最长255位")
    @NotBlank(message = "项目名称不能为空")
    private String name;

    @Schema(description = "项目缩略图URL")
    @Size(max = 255, message = "【项目缩略图URL】最长255位")
    private String thumbnail;

    @Schema(description = "目标使用人群")
    @Size(max = 100, message = "【目标使用人群】最长100位")
    private String targetAudience;

    @Schema(description = "项目适用的身体部位")
    @Size(max = 100, message = "【项目适用的身体部位】最长100位")
    private String bodyPart;

    @Schema(description = "服务持续时长，如90分钟")
    @Size(max = 50, message = "【服务持续时长，如90分钟】最长50位")
    private String serviceDuration;

    @Schema(description = "项目详细描述")
    @Size(max = 65535, message = "【项目详细描述】最长65535位")
    private String detailDescription;

    @Schema(description = "当前售价（分）", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "当前售价（分）不能为空")
    private Integer currentPrice;

    @Schema(description = "会员专享价格（分）")
    private Integer memberPrice;

    @Schema(description = "疗程套餐价格（分）")
    private Integer coursePrice;

    @Schema(description = "商品原价（分）")
    private Integer originalPrice;

    @Schema(description = "项目页面浏览次数")
    private Integer viewCount;

    @Schema(description = "累计销售数量")
    private Integer salesVolume;

    @Schema(description = "列表排序序号")
    private Integer sortOrder;

    @Schema(description = "项目状态：0=禁用，1=启用")
    private EnabledStatusEnum status;

    @Schema(description = "所属店铺ID", requiredMode = Schema.RequiredMode.REQUIRED)
//    @NotNull(message = "所属店铺ID不能为空")
    private Integer storeId;

    @Schema(description = "疗程数量")
    private Integer courseNumber;

}
